package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Article;
import cn.wolfcode.trip.base.mapper.ArticleMapper;
import cn.wolfcode.trip.base.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements IArticleService {

    @Autowired
    private ArticleMapper articleMapper;


    public List<Article> queryForList() {
        return articleMapper.selectAll();
    }

    public Article getArticleDetailByArticleId(Long articleId) {
        return articleMapper.selectByPrimaryKey(articleId);
    }



}
